/**
 * http://www.jootu.net
 */
package com.jootu.cc.ccapi.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.jootu.cc.ccapi.domain.UsersMapper;
import com.jootu.cc.ccapi.domain.resultmap.PhoneNumber;
import com.jootu.cc.ccapi.domain.resultmap.UserInfo;

/**
*@author:antch
*@date:2017年8月10日
*@Description:（描述）
*
*/
@Service
public class UserService {


	@Autowired
	private UsersMapper usersMapper;
	
	public UserInfo getUserInfoById(Integer id) {
		return usersMapper.getUserInfoById(id);
	}
	
	
	public List<PhoneNumber> getPhoneNumberList(){
		ArrayList<PhoneNumber> lists = new ArrayList<PhoneNumber>();
		PageHelper.startPage(1,2);
		lists.addAll(usersMapper.getPhoneNumberList(3));//添加监工
		lists.addAll(usersMapper.getPhoneNumberList(2));//施工人员
		System.out.println(lists);
		return lists;
		
	}
}
